package zy1220.zy1;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.List;

public class demo {
    public static void main(String[] args) throws IOException {
        List<String> list = FileUtils.readLines(new File("D:\\ideadashuju12\\liu_ya_kai\\src\\zy1220\\zy1\\data.txt"));
        FileOutputStream fileOutputStream = new FileOutputStream("p.png");
        byte n2 = 0;
        for (int i = list.size() - 1; i >= 0; i--) {
            String[] split = list.get(i).split("=");
            n2 = (byte) (Integer.parseInt(split[1])+2);
            fileOutputStream.write(n2);
        }
        fileOutputStream.getChannel();
    }
}
